package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import com.youlu.campus.entity.domain.PlayBillDomain;
import lombok.Data;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 每日学习
 */
@Data
@Document(collection = "daily_learning")
public class DailyLearning extends EntityBase {
    @Indexed
    private String activityId;
    private String activityName;
    private String taskId;
    @Indexed
    private Date dayTime;
    private String imageUrl;
    private String title;
    private String detail;
    @Transient
    private String tips;
    /**
     * 是否有分享
     */
    @Transient
    private Boolean hasShare = Boolean.FALSE;
    /**
     * 海报信息
     */
    private PlayBillDomain playBillDomain;

    /**
     * 海报图片-打卡成功每天不一样
     */
    private String posterImgUrl;
}
